package UI;

import app.Commodity;

import java.util.Scanner;

public class Menu {
    public Menu() {
        System.out.println("===========欢迎使用仓库管理系统===========");
        System.out.println("请输入对应的序号使用相应的功能:             ");
        System.out.println("                1.入库");
        System.out.println("                2.出库");
        System.out.println("                3.查询");
        System.out.println("                4.退出");

        Scanner sc = new Scanner(System.in);
        int flag = sc.nextInt();
        switch (flag) {
            case 1:
                System.out.println("进入入库系统");
                Commodity commodity = new Commodity();
                commodity.Warehousing();
                break;
            case 2:
                System.out.println("进入出库系统");
                break;
            case 3:
                System.out.println("进入查询系统");
                break;
            case 4:
                System.out.println("系统推出");
                break;
            default:
                System.out.println("请输入正确的序号");
        }
    }
}
